import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRouting } from './routing/app.routing';

import { AppComponent } from './app.component';
import { NgZorroAntdModule, NZ_I18N, en_US } from 'ng-zorro-antd';
import { FormsModule } from '@angular/forms';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { registerLocaleData } from '@angular/common';
import en from '@angular/common/locales/en';
import { NavigationComponent } from './navigation/navigation.component';
import { LoginModule } from './login/login.module';
import { HttpInterceptor } from './http-interceptor/index';
import { NgxEchartsModule } from 'ngx-echarts';
import { ErrorComponent } from './error/error.component';
import { CustomModule } from './custom/custom.module';

registerLocaleData(en);

@NgModule({
  declarations: [
    AppComponent,
    NavigationComponent,
    ErrorComponent
  ],
  imports: [
    BrowserModule,
    AppRouting,
    NgZorroAntdModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    LoginModule,
    NgxEchartsModule,
    CustomModule
  ],
  providers: [
    { provide: NZ_I18N, useValue: en_US },
    HttpInterceptor
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
